using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Principal;

namespace Example
{
    public class TestPrincipal : IPrincipal
    {
        #region IPrincipal Members
        private TestIdentity _Identity = new TestIdentity();
        public IIdentity Identity
        {
            get { return _Identity; }
        }

        public bool IsInRole(string role)
        {
            return _Identity.IsInRole(role);
        }

        #endregion

        public void Login(string Name)
        {
            _Identity.Login(Name);
        }
        
    }
}
